Repository navigation
chore: bump android-sdk to 3.2.2 - #58
Merged
Merged
Conversation
android-sdk 3.2.2 stops otel-android instrumentation discovery when activity lifecycle monitoring is disabled. Before this, every Android launch produced an extra 'AppStart ... Paused' session with no replay alongside the real one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Every Android launch produced two sessions:
AppStartat 00:00 and aPausedwhen the app was backgrounded, the same duration, and "This session has no replay yet"Seen on visitly-dev (My Visitly):
2c34afa1…(phantom, singlePausedat 14:42:02Z) next to3a572b1e…(real, last event 14:42:01Z).The bridge calls
disableActivityLifecycleMonitoring(), but android-sdk ≤ 3.2.1 ignored it. otel-android instrumentation discovery stayed on, so itsActivityLifecycleInstrumentationstarted anAppStartspan insidebuild(), before the bridge injects the JS session id. That span stayed open until the first lifecycle callback (Paused). Fixed in android-sdk 3.2.2 (middleware-labs/middleware-android#89).Changes
android/build.gradle:android-sdk3.2.0 → 3.2.2package.json: 2.3.0 → 2.3.1 (2.3.0 is already on npm).mw.rum.sdk.versionreads it.Testing
:middleware.io_middleware-react-native:compileDebugJavaWithJavacbuilds againstandroid-sdk:3.2.2resolved from Maven Central.